<!--
 * @Description: 
 * @Author: wanggang
 * @Date: 2019-11-15 18:52:32
 -->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .alarm-layer {
            position: fixed;
            top: 20px;
            right: 200px;
            width: 300px;
            height: 200px;
            border: 1px solid rgba(255,22,22,.3);
            background: rgba(0,0,0,.8);
            box-shadow: inset 0 0 50px 0 rgba(255,22,22,.3);
            color:rgba(255,255,255,0.5);
        }
        .alarm-tips {
            position: absolute;
            top: 10px;
            width: 100%;
            height: 30px;
            line-height: 30px;
        }
        .tips-img {
            position: absolute;
            top: 0;
            left: 10px;
            height: 100%;
            width: 30px;
        }
        .tips-name {
            position: absolute;
            top: 0;
            right: 30px;
            width: 210px;
            height: 100%;
        }
        .alarm-content {
            position: absolute;
            top: 43px;
            height: 86px;
            width: 100%;
            text-indent:2em;
            box-sizing: border-box;
            padding-left: 5px;
        }
        .alarm-locate {
            position: absolute;
            top: 115px;
            right: 11px;
            width: 82px;
            height: 25px;
            line-height: 20px;
            border: 1px solid rgba(255,22,22,.6);
            border-radius: 12px;
            color: #fff;
            background: rgba(255,22,22,.6);
            text-align: center;
            box-sizing: border-box;
        }
        .alarm-number {
            position: absolute;
            box-sizing: 10px;
            padding-left: 10px;
            top: 134px;
            width: 50%;
            height: 56px;
            line-height: 56px;
        }
        .alarm-layer-page {
            position: absolute;
            top: 134px;
            left: 50%;
            height: 56px;
            width: 50%;
            line-height: 56px;
        }
        .middle {
            position: absolute;
            left: 23px;
        }
        .left_arrows {
            position: absolute;
            top: 22px;
            left: 10px;
            width: 10px;
            height: 10px;
            border-top: 1px solid #c3c8d6;
            border-right: 1px solid #c3c8d6;
            transform: rotate(-135deg);
            margin-right: 10px;
        }

        .right_arrows {
            position: absolute;
            top: 22px;
            left: 50px;
            width: 20px;
            width: 10px;
            height: 10px;
            border-top: 1px solid #c3c8d6;
            border-right: 1px solid #c3c8d6;
            transform: rotate(45deg);
            margin-right: 10px;
        }
    </style>
</head>
<body>
    <div class="alarm-layer">
        <div class="alarm-tips">
            <div class="tips-img">11</div>
            <div class="tips-name">告警提示</div>
        </div>
        <div class="alarm-content">
            某某某发生告警某某某发生告警某某某发生告警某某某发生告警
        </div>
        <div class="alarm-locate">
            查看详情
        </div>
        <div class="alarm-number">
            还有<span>3</span>个通知
        </div>
        <div class="alarm-layer-page">
            <div class="left_arrows"></div>        
            <div class="middle"><span>1</span>/<span>1</span></div>
            <div class="right_arrows"></div>
        </div>
    </div>
</body>
<script>
    function test() {
        function test1 () {
            document.getElementsByClassName("left_arrows")[0].onclick = ()=> {
        console.log('我被点击了,开始向左翻页');
        }
        test1();
       
    }
    }

test();     
    // document.getElementsByClassName("left_arrows")[0].onclick = ()=> {
    //     console.log('我被点击了,开始向右翻页');
    // }
    
</script>
</html>